// @ts-ignore
/* eslint-disable */
import { request } from "../../utils/request";
/** 宣传刊播 来源 列表 POST */
export async function treeSource(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<PublicitySourceData.Source[]>>(
    '/publicity/source/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 宣传刊播 来源 保存 POST */
export async function saveSource(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/publicity/source/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 宣传刊播 来源 更新 POST */
export async function updateSource(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/publicity/source/update', {
    method: 'POST',
    data: options || {},
  });
}
